fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("cargo:rerun-if-changed=proto/war3.proto");
    
    let mut config = prost_build::Config::new();
    config.out_dir("src/");
    
    config.compile_protos(&["proto/war3.proto"], &["proto/"])?;
    
    println!("Proto compilation completed successfully");
    Ok(())
}